package com.quanquan.store.repository;


import com.quanquan.store.entity.GroupBuying;
import com.quanquan.store.entity.ShoppingKill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface GroupBuyingRepository extends JpaRepository<GroupBuying,Long>, JpaSpecificationExecutor<GroupBuying> {

    /**
     * 根据id和数字查询秒杀商品信息
     * @param id
     * @param num
     * @return
     */
    public GroupBuying findByIdAndRemove(String id, Integer num);
}
